<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@ include file="/WEB-INF/view/system/common/head.jsp"%>
<script type="text/javascript" src="asserts/plugins/easyui/plugins/jquery-easyui-datagridview/datagrid-detailview.js"></script>
<body>
  <div id="datagrid"></div>

</body>
<script type="text/javascript" charset="UTF-8">
	var dataGrid = commonDataGrid({
		url:'/pi-admin/pay/record/list/query',
		columns:[[
			{field:'userName',title:'用户',align:'center'},
			{field:'createDate',title:'支付时间',align:'center'}, 
			{field:'payType',title:'支付类型',align:'center', formatter:function(value,row,index){
				//1:微信;2:支付宝;3:现金
				if(!value){
					return '';
				}else if(value == 1){
					return '微信';
				}else if(value == 2){
					return '支付宝';
				}else if(value == 3){
					return '现金';
				}else{
					return '';
				}
			}},
			{field:'openId',title:'支付人',align:'center'},
			{field:'recordType',title:'操作类型',align:'center', formatter:function(value,row,index){
				//1:充值;2:扣款;3:提现;4:缴押金 
				if(!value){
					return '';
				}else if(value == 1){
					return '充值';
				}else if(value == 2){
					return '扣款';
				}else if(value == 3){
					return '提现';
				}else if(value == 4){
					return '缴押金';
				}else{
					return '';
				}
			}},
			{field:'payDiscount',title:'支付金额',align:'center'}, 
		]],
		title:'支付试记录',
		pagination:true,
	});
</script>
</html>